lib/core: add ostree_checksum_file_at API
authorJonathan Lebon <jlebon@redhat.com>
Wed, 11 Oct 2017 14:52:02 +0000 (14:52 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 12 Oct 2017 12:53:01 +0000 (12:53 +0000)
commit077d2718ad5ef58935ecb03f7757302250753c09
tree2ee331a61631584f2b000491385446cd6619aca7
parent60b5925c549288171a38d97ad06cb4693a7f8107
lib/core: add ostree_checksum_file_at API

This is like `ostree_checksum_file` but fd-relative. This will be used
by https://github.com/ostreedev/ostree/pull/1258.

AFAICT, we actually didn't have any tests that check the `checksum` CLI.
Add a basic one here to test the old code as well as the new code.

Closes: #1263
Approved by: cgwalters
apidoc/ostree-sections.txt
bash/ostree
man/ostree-checksum.xml
src/libostree/libostree-devel.sym
src/libostree/ostree-core.c
src/libostree/ostree-core.h
src/ostree/ot-builtin-checksum.c
tests/basic-test.sh